import vue from '@vitejs/plugin-vue'

/**
 * Copyright (c) 2013-Now http://jeesite.com All rights reserved.
 * No deletion without permission, or be held responsible to law.
 * @author ThinkGem
 */
import type { UserConfig, ConfigEnv } from 'vite';
import { defineConfig } from 'vite';
import path from 'path';


export default defineConfig(async ({ }: ConfigEnv) => {
  const root = process.cwd();
  const config: UserConfig = {
    root,
    plugins: [vue()],
    resolve: {
      alias: {
        '@/views': path.resolve(__dirname, './src/views'),
      },
    },
  };
  return config;
});